<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>

<title>自主点餐系统</title>
	<%
		String basePath = request.getScheme()
				+"://"
				+request.getServerName()
				+":"
				+request.getServerPort()
				+request.getContextPath()
				+"/";
	%>
	<base href="<%=basePath%>">
	<!--_meta 作为公共模版分离出去-->
	<%@ include file="common/web_meta.jsp"%>
	<!--/meta 作为公共模版分离出去-->
<style type="text/css">
    .icon {
       width: 1em; height: 1em;
       vertical-align: -0.15em;
       fill: currentColor;
       overflow: hidden;
    }
</style>
</head>
<body>

<!--/_header 作为公共模版分离出去-->
<%@ include file="common/web_header.jsp"%>
<!--/_header 作为公共模版分离出去-->

<!--_menu 作为公共模版分离出去-->
<%@ include file="common/web_menu.jsp"%>
<!--/_menu 作为公共模版分离出去-->

<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont"></i> <a href="/" class="maincolor">首页</a> 
		<span class="c-999 en">&gt;</span>
		<span class="c-666">会员管理</span> 
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
	<div class="Hui-article">	
		<article class="cl pd-20">
			<div class="text-c"> 日期范围：
				<input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}'})" id="datemin" class="input-text Wdate" style="width:120px;">
				-
				<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d'})" id="datemax" class="input-text Wdate" style="width:120px;">
				<input type="text" class="input-text" style="width:250px" placeholder="输入会员名称、电话、邮箱" id="" name="">
				<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>
			</div>
			<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"></span> <span class="r">共有数据：<strong>?</strong> 条</span> </div>
			<div class="mt-20">
				<table class="table table-border table-bordered table-hover table-bg table-sort">
					<thead>

						<tr class="text-c">
							<th width="80">ID</th>
							<th width="100">用户名</th>
							<th width="40">密码</th>
							<th width="90">手机</th>
							<th width="130">注册时间</th>
							<th width="70">详情</th>
							<th width="100">操作</th>
						</tr>
					</thead>
					<tbody>
					<c:forEach begin="0" end="${requestScope.userlist.size()}" items="${requestScope.userlist}" varStatus="status" var="item">
						<tr class="text-c">
							<td>${item.id}</td>
							<td><u style="cursor:pointer" class="text-primary" onclick="member_show('${item.account}','accountservlet?action=web_member_manager_show&id=${item.id}','10001','360','400')">${item.account}</u></td>
							<td>${item.password}</td>
							<td>${item.account}</td>
							<td>${item.regtime}</td>
							<td class="td-status"><span class="label label-success radius"><a href="accountservlet?action=web_member_manager_show&id=${item.id}">详情</a></span></td>
							<td class="td-manage">
<%--								<a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a>--%>
								<a title="删除" href="accountservlet?action=deleteAccount&accountId=${item.id}" class="ml-5 delete" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>
							</td>
						</tr>
					</c:forEach>
					</tbody>
				</table>
			</div>
		</article>
	</div>
</section>
<!--_footer 作为公共模版分离出去-->
<%@ include file="common/web_footer.jsp"%>
<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="pc/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="pc/lib/datatables/1.10.15/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="pc/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
$(function(){

	$("a.delete").click(function(){
		return confirm('确认要删除吗？');
	});
	// dataTable可以自动分页
	$('.table-sort').dataTable({
		// "aaSorting": [[ 1, "desc" ]],//默认第几个排序
		// "bStateSave": true,//状态保存
		// "aoColumnDefs": [
		//   //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		//   {"orderable":false,"aTargets":[0,8,9]}// 制定列不参与排序
		// ]
	});
	$('.table-sort tbody').on( 'click', 'tr', function () {
		if ( $(this).hasClass('selected') ) {
			$(this).removeClass('selected');
		}
		else {
			table.$('tr.selected').removeClass('selected');
			$(this).addClass('selected');
		}
	});
});

/*用户-查看*/
function member_show(title,url,id,w,h){
	layer_show(title,url,w,h);
}
</script>
</body>
</html>